package org.jeecg.modules.company.facade.impl;



import org.springframework.stereotype.Service;


import org.jeecg.base.facade.impl.IFacadeImpl;
import org.jeecg.modules.company.entity.TaocanOrder;
import org.jeecg.modules.company.facade.ITaocanOrderFacade;
import org.jeecg.modules.company.service.ITaocanOrderService;
import org.jeecg.modules.company.vo.TaocanOrderVo;
import org.springframework.beans.BeanUtils;

import org.springframework.beans.factory.annotation.Autowired;


/**
 * @Description: 套餐订单
 * @Author: zj
 * @Date:   2020-05-26
 * @Version: V1.0
 */


@Service
public class TaocanOrderFacadeImpl extends IFacadeImpl<TaocanOrderVo, TaocanOrder, ITaocanOrderService>  implements ITaocanOrderFacade<TaocanOrderVo, TaocanOrder> {
        @Autowired
        private ITaocanOrderService taocanOrderService;


         @Override
         public TaocanOrder po2Vo(TaocanOrderVo vo) {
                TaocanOrder po = new TaocanOrder();
                if(vo==null){
                   return null;
                }
                BeanUtils.copyProperties(vo, po);
                return po;
         }

         @Override
         public TaocanOrderVo vo2Po(TaocanOrder po) {
                TaocanOrderVo vo = new TaocanOrderVo();
                 if(po==null){
                     return null;
                  }
                BeanUtils.copyProperties(po, vo);
                return vo;
         }

}
